package com.jackie.springmvc.handlers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; 
import org.springframework.web.bind.annotation.RequestMapping;

@Controller 
public class HelloWorld {
	
	@RequestMapping(value="/hello")
	public String sayHello(){
		ModelMap  modelMap = new ModelMap();
		modelMap.put("sayHello","hello world");
		System.out.println("hello");
		return "success";
	}
}
